
#ifndef SERVERGAME_H
#define SERVERGAME_H

#include <cstdlib>
#include <vector>
#include <ctime>
#include <string>
#include "ServerPlayer.h"
#include "ServerMoon.h"

using namespace std;

class ServerGame {

	public:	
		const static int STARTING_POPULATION = 50000;
		ServerGame(int numMoons);
		void update();
		void addPlayer(int pPlayerId, string pPlayerName);
		void removePlayer(int pPlayerId);
		ServerMoon * findMoon(int moonId);
		string serialize();
	private:
		
		vector<ServerMoon> * allMoons;
		vector<ServerPlayer> * allPlayers;		
		
		//timing info
		long timeNow;
		long timePass;
		long timePrev;
		float timeDT;
		
};

#endif
